import { uploadFile } from './request.js';
import request from './request.js';

/** @name 附件上传 **/
export function fileUploadAPI (params, type = 'wx') {
  return uploadFile({
    url: `/files/uploads/${type}`,
		tempFilePaths: params.tempFilePaths,
		data: params.data,
    file: params.file,
  })
}

/** @name 附件删除 **/
export function fileDeleteAPI (data) {
  return request({
    url: '/files/delete',
    method: 'delete',
    data
  })
}
